Add a CSS node test for notebooks
authorMatthias Clasen <mclasen@redhat.com>
Mon, 28 Dec 2015 07:03:29 +0000 (02:03 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Sun, 3 Jan 2016 14:19:30 +0000 (09:19 -0500)
testsuite/css/nodes/Makefile.am
testsuite/css/nodes/notebook.nodes [new file with mode: 0644]
testsuite/css/nodes/notebook.ui [new file with mode: 0644]

index c2273b7d792c0114ca82750f92134f94a370d628..d6bb93828d618e1a927ec522ea0866082be34f8e 100644 (file)
@@ -25,6 +25,7 @@ test_css_nodes_SOURCES = \
         test-css-nodes.c
 
 test_data = \
+       notebook.ui notebook.nodes \
        $(NULL)
 
 EXTRA_DIST += $(test_in_files) $(test_data)
diff --git a/testsuite/css/nodes/notebook.nodes b/testsuite/css/nodes/notebook.nodes
new file mode 100644 (file)
index 0000000..0264855
--- /dev/null
@@ -0,0 +1,15 @@
+window visible=0 state=dir-ltr classes=background
+  decoration visible=1 state=dir-ltr
+  notebook visible=1 state=dir-ltr classes=frame
+    header visible=1 state=dir-ltr classes=top
+      button visible=1 state=dir-ltr classes=text-button
+        label visible=1 state=dir-ltr
+      tabs visible=1 state=dir-ltr
+        tab visible=1 state=active|dir-ltr
+          label visible=1 state=dir-ltr
+        tab visible=1 state=dir-ltr
+          label visible=1 state=dir-ltr
+    button visible=1 state=dir-ltr classes=text-button
+      label visible=1 state=dir-ltr
+    button visible=1 state=dir-ltr classes=text-button
+      label visible=1 state=dir-ltr
diff --git a/testsuite/css/nodes/notebook.ui b/testsuite/css/nodes/notebook.ui
new file mode 100644 (file)
index 0000000..8fb9a0f
--- /dev/null
@@ -0,0 +1,43 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<interface>
+  <!-- interface-requires gtk+ 3.0 -->
+  <object class="GtkWindow" id="window1">
+    <property name="can_focus">False</property>
+    <property name="type">popup</property>
+    <child>
+      <object class="GtkNotebook" id="notebook1">
+        <property name="visible">True</property>
+        <child>
+          <object class="GtkButton" id="page1">
+            <property name="label" translatable="yes">Yes</property>
+            <property name="visible">True</property>
+          </object>
+        </child>
+        <child type="tab">
+          <object class="GtkLabel" id="tab1">
+            <property name="label" translatable="yes">Tab 1</property>
+            <property name="visible">True</property>
+          </object>
+        </child>
+        <child>
+          <object class="GtkButton" id="page2">
+            <property name="label" translatable="yes">No</property>
+            <property name="visible">True</property>
+          </object>
+        </child>
+        <child type="tab">
+          <object class="GtkLabel" id="tab2">
+            <property name="label" translatable="yes">Tab 2</property>
+            <property name="visible">True</property>
+          </object>
+        </child>
+        <child type="action-start">
+          <object class="GtkButton" id="action">
+            <property name="label" translatable="yes">Action</property>
+            <property name="visible">True</property>
+          </object>
+        </child>
+      </object>
+    </child>
+  </object>
+</interface>